var myApp = angular.module('myApp', []);

myApp.controller('MyController', function($scope, $interpolate) {
	//设置监听
	$scope.$watch('emailBody', function(body) {
		if(body) {
			console.log('watch something changed.');
			var template = $interpolate(body);

			$scope.previewText = template({
				to : $scope.to
			});
		}
	});
});